
package adapter.include;

public class PowerAdapter implements JapanPowProvider, PowerProvider {

    ChinaPowProvider chinaPowProvider;

    public PowerAdapter() {
        chinaPowProvider = new ChinaPowProvider();
    }

    @Override
    public void provide110() {

        System.out.print("电源:输出110V");
    }

    @Override
    public void provide220() {
        chinaPowProvider.provide220();
    }

}
